//
//  DataRequest.h
//  LeadMagazine
//
//  Created by yuzhou on 13-3-12.
//  Copyright (c) 2013年 fred. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASINetworkQueue.h"
#import "URL.h"

@interface DataRequest : NSObject<ASIHTTPRequestDelegate>
{
    
}
+ (DataRequest *)sharedRequest;

#pragma mark 期刊接口
- (id)getMagazineCategory;
- (id)getMagazineByCatgory:(NSString *)categoryID;
- (id)getMagazineInfo:(NSString *)magazineID;
- (id)getMagazineContent:(NSString *)magazineID;
- (id)getArticleInfo:(NSString *)articleID;
- (id)getRecentReadWithItemID:(NSString *)itemID;
- (id)getRecentReaded;
- (id)getSearchInfo:(NSString *)searchStr;
- (id)getHistoryInfo:(NSString *)magazineID;
#pragma mark 听书接口
- (id)getListenCategory;
- (id)getListenByCatgory:(NSString *)categoryID;
- (id)getListenInfo:(NSString *)listenID;
- (id)getListenContent:(NSString *)listenID;
- (id)getListenComment:(NSString *)listenID;
- (id)getListenSearchResult:(NSString *)keyWords;

#pragma mark 小说接口
- (id)getNovelCategory;
- (id)getNovelByCategory:(NSString *)categoryID count:(int)count;
- (id)getNovelInfo:(NSString *)novelID;
- (id)getNovelChapterInfo:(NSString *)chapterID;
- (id)getNovelCollectInfo:(NSString *)novelID;
- (id)addNovelReadInfo:(NSString *)itemID nc_id:(NSString *)ncID;
- (id)getNovelRecentlyInfo;
- (id)getNovelSearchResult:(NSString *)keyWords;

#pragma mark 报纸接口

- (id)getRecentNewspaper;
- (id)getHomePage;
- (id)getNewspaperTextVersions:(NSString *)itemID;
- (id)getNewspaperPicVersions:(NSString *)itemID imageType:(NSString *)type;
- (id)getNewspaperPicDes:(NSString *)itemID pageNum:(NSInteger)pageNum;
- (id)getNewspaperSingleArticle:(NSString *)pageID;
- (id)getNewspaperInfoWithYear:(NSString *)year mouth:(NSString *)mouth day:(NSString *)day;

#pragma mark 账号接口
- (id)loginWithUsername:(NSString *)username password:(NSString *)password;
- (id)registerWithUsername:(NSString *)username password:(NSString *)password email:(NSString *)email;
- (id)modifyPasswordWithOriginPassword:(NSString *)originPassowrd newPassword:(NSString *)newPassword;
- (id)modifyTelNumber:(NSString *)telNumber password:(NSString *)password;

#pragma mark 动态接口

- (id)getDynamicsHomepage;
- (id)getDynamicsSingleArticle:(NSString *)public_optione_id;
- (BOOL)checkDynamicsUpdate;

#pragma mark 激活接口
- (id)getActivateInfoUUID:(NSString *)uuid activateNum:(NSString *)activateNum;
- (id)getUUIDInfo:(NSString *)uuid;

#pragma mark 程序更新
- (id)detectionUpdate;
- (id)getAppVersionInfo;
@end
